<extend name="admin/main"/>

<block name="title">
    <title>添加banner</title>
</block>

<block name="css">
</block>

<block name="heading">添加banner</block>

<block name="content">
    <form class="form-horizontal" method="post" action="/admin/banner/save" enctype="multipart/form-data">
        <div class="form-group mb-md">
            <label for="src" class="col-xs-4 control-label">banner图片</label>
            <div class="col-xs-8">
                <input type="file" class="form-control" id="src" name="src" required>
            </div>
        </div>

        <div class="form-group mb-md">
            <label for="link" class="col-xs-4 control-label">banner链接</label>
            <div class="col-xs-8">
                <input type="text" class="form-control" id="link" name="link" required>
            </div>
        </div>
        <div class="form-group mb-md col-xs-9 pull-right">
            <button class="btn btn-block btn-success" type="submit">提交</button>
        </div>
    </form>
</block>

<block name="js">
    <script type="text/javascript" src="__PUBLIC__/assets/demo/demo.js"></script>
    <script type="text/javascript" src="__PUBLIC__/assets/demo/demo-switcher.js"></script>
    <script type="text/javascript" src="__PUBLIC__/assets/plugins/bootbox/bootbox.js"></script>

    <script type="text/javascript"
            src="__PUBLIC__/assets/plugins/form-pagedown/js/jquery.pagedown-bootstrap.combined.js">
    </script>
    <script>
        $(document).ready(function () {
            $("textarea#content").pagedownBootstrap();
            $('.wmd-preview').addClass('well');
        });
    </script>
</block>


